package com.syni.mdd.yhd.common.all.controller.system;

/**
 * @className BmsBusinessController
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/15 14:25
 * @VERSION 1.0
 **/

import com.syni.mdd.sjb.common.component.utils.common.annotations.CheckParams;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;
import com.syni.mdd.yhd.common.all.service.BmsDxVersionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/version")
public class BmsDxVersionController {

    @Autowired
    BmsDxVersionService bmsDxVersionService;

    @PostMapping("/getAppVersion")
    @CheckParams
    public Map<String,Object> getVersion(@RequestBody ParamsMap paramsMap){
        return bmsDxVersionService.getVersion(paramsMap);
    }



}
